package cn.kgm.listener;

import cn.kgm.rabbitmq.config.RabbitMQConfig;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class RabbitMQListener {

    public static void main(String[] args) {
        System.out.println(Integer.valueOf("0022d" ));
    }

    @RabbitListener(queues = RabbitMQConfig.QUEUE_NAME)
    public void listenerQueue(Message message) {
        System.out.println(message);
    }
}
